{% extends "base.html" %}
{% load match %}
{% load pretty_user %}

{% block additional_title %}
	{% ifequal comment_id 0 %}
	Dodavanje komentara
	{% else %}
	Izmena komentara
	{% endifequal %}
{% endblock %}

{% block additional_head %}
<script type="text/javascript" src="/mdcs/media/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/mdcs/media/js/tiny_mce/textareas.js"></script>
{% endblock %}

{% block content %}

<center>
	<h2>
	{% ifequal comment_id 0 %}
	Dodavanje komentara
	{% else %}
	Izmena komentara
	{% endifequal %}
	</h2>

	{% ifequal comment_id 0 %}
	<form action="/mdcs/match/{{ match.id }}/add_comment/" method="POST">
	{% else %}
	<form action="/mdcs/match/{{ match.id }}/edit_comment/{{ comment_id }}/" method="POST">
	{% endifequal %}
	{{ comment_form.as_p }}

	{% ifequal comment_id 0 %}
		<input type="submit" value="Dodaj" />
	{% else %}
		<input type="submit" value="Izmeni" />
	{% endifequal %}
</form>
</center>
{% endblock %}